package cn.hongyu.mapper.impl;

import cn.hongyu.mapper.AccountMapper;
import cn.hongyu.pojo.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class AccountMapperImpl implements AccountMapper {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    public void save(Account account) {
        int i = jdbcTemplate.update("insert into account values (?,?,?)", null, account.getName(), account.getMoney());
    }
}
